3.10.96 \(\int \frac {(a+b \sec (c+d x))^2 (A+B \sec (c+d x)+C \sec ^2(c+d x))}{\sec ^{\frac {9}{2}}(c+d x)} \, dx\) [996]

Optimal. Leaf size=290 \[ \frac {2 \left (18 a b B+3 b^2 (3 A+5 C)+a^2 (7 A+9 C)\right ) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{15 d}+\frac {2 \left (10 a A b+5 a^2 B+7 b^2 B+14 a b C\right ) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{21 d}+\frac {2 a (4 A b+9 a B) \sin (c+d x)}{63 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 \left (4 A b^2+18 a b B+a^2 (7 A+9 C)\right ) \sin (c+d x)}{45 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 \left (10 a A b+5 a^2 B+7 b^2 B+14 a b C\right ) \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}+\frac {2 A (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d \sec ^{\frac {7}{2}}(c+d x)} \]

[Out]

2/63*a*(4*A*b+9*B*a)*sin(d*x+c)/d/sec(d*x+c)^(5/2)+2/45*(4*A*b^2+18*a*b*B+a^2*(7*A+9*C))*sin(d*x+c)/d/sec(d*x+
c)^(3/2)+2/9*A*(a+b*sec(d*x+c))^2*sin(d*x+c)/d/sec(d*x+c)^(7/2)+2/21*(10*A*a*b+5*B*a^2+7*B*b^2+14*C*a*b)*sin(d
*x+c)/d/sec(d*x+c)^(1/2)+2/15*(18*a*b*B+3*b^2*(3*A+5*C)+a^2*(7*A+9*C))*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*
x+1/2*c)*EllipticE(sin(1/2*d*x+1/2*c),2^(1/2))*cos(d*x+c)^(1/2)*sec(d*x+c)^(1/2)/d+2/21*(10*A*a*b+5*B*a^2+7*B*
b^2+14*C*a*b)*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticF(sin(1/2*d*x+1/2*c),2^(1/2))*cos(d*x+c)
^(1/2)*sec(d*x+c)^(1/2)/d

________________________________________________________________________________________

Rubi [A]
time = 0.38, antiderivative size = 290, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 8, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.186, Rules used = {4179, 4159, 4132, 3854, 3856, 2720, 4130, 2719} \begin {gather*} \frac {2 \sin (c+d x) \left (a^2 (7 A+9 C)+18 a b B+4 A b^2\right )}{45 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 \sin (c+d x) \left (5 a^2 B+10 a A b+14 a b C+7 b^2 B\right )}{21 d \sqrt {\sec (c+d x)}}+\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \left (5 a^2 B+10 a A b+14 a b C+7 b^2 B\right )}{21 d}+\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \left (a^2 (7 A+9 C)+18 a b B+3 b^2 (3 A+5 C)\right )}{15 d}+\frac {2 a (9 a B+4 A b) \sin (c+d x)}{63 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^2}{9 d \sec ^{\frac {7}{2}}(c+d x)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((a + b*Sec[c + d*x])^2*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2))/Sec[c + d*x]^(9/2),x]

[Out]

(2*(18*a*b*B + 3*b^2*(3*A + 5*C) + a^2*(7*A + 9*C))*Sqrt[Cos[c + d*x]]*EllipticE[(c + d*x)/2, 2]*Sqrt[Sec[c +
d*x]])/(15*d) + (2*(10*a*A*b + 5*a^2*B + 7*b^2*B + 14*a*b*C)*Sqrt[Cos[c + d*x]]*EllipticF[(c + d*x)/2, 2]*Sqrt
[Sec[c + d*x]])/(21*d) + (2*a*(4*A*b + 9*a*B)*Sin[c + d*x])/(63*d*Sec[c + d*x]^(5/2)) + (2*(4*A*b^2 + 18*a*b*B
 + a^2*(7*A + 9*C))*Sin[c + d*x])/(45*d*Sec[c + d*x]^(3/2)) + (2*(10*a*A*b + 5*a^2*B + 7*b^2*B + 14*a*b*C)*Sin
[c + d*x])/(21*d*Sqrt[Sec[c + d*x]]) + (2*A*(a + b*Sec[c + d*x])^2*Sin[c + d*x])/(9*d*Sec[c + d*x]^(7/2))

Rule 2719

Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticE[(1/2)*(c - Pi/2 + d*x), 2], x] /; FreeQ[{
c, d}, x]

Rule 2720

Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticF[(1/2)*(c - Pi/2 + d*x), 2], x] /; FreeQ
[{c, d}, x]

Rule 3854

Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Simp[Cos[c + d*x]*((b*Csc[c + d*x])^(n + 1)/(b*d*n)), x
] + Dist[(n + 1)/(b^2*n), Int[(b*Csc[c + d*x])^(n + 2), x], x] /; FreeQ[{b, c, d}, x] && LtQ[n, -1] && Integer
Q[2*n]

Rule 3856

Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Dist[(b*Csc[c + d*x])^n*Sin[c + d*x]^n, Int[1/Sin[c + d
*x]^n, x], x] /; FreeQ[{b, c, d}, x] && EqQ[n^2, 1/4]

Rule 4130

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.))^(m_.)*(csc[(e_.) + (f_.)*(x_)]^2*(C_.) + (A_)), x_Symbol] :> Simp[A*Cot[e
+ f*x]*((b*Csc[e + f*x])^m/(f*m)), x] + Dist[(C*m + A*(m + 1))/(b^2*m), Int[(b*Csc[e + f*x])^(m + 2), x], x] /
; FreeQ[{b, e, f, A, C}, x] && NeQ[C*m + A*(m + 1), 0] && LeQ[m, -1]

Rule 4132

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.))^(m_.)*((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(
C_.)), x_Symbol] :> Dist[B/b, Int[(b*Csc[e + f*x])^(m + 1), x], x] + Int[(b*Csc[e + f*x])^m*(A + C*Csc[e + f*x
]^2), x] /; FreeQ[{b, e, f, A, B, C, m}, x]

Rule 4159

Int[((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.))*(csc[(e_.) + (f_.)*(x_)]*(d_.))^
(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)), x_Symbol] :> Simp[A*a*Cot[e + f*x]*((d*Csc[e + f*x])^n/(f*n)), x]
 + Dist[1/(d*n), Int[(d*Csc[e + f*x])^(n + 1)*Simp[n*(B*a + A*b) + (n*(a*C + B*b) + A*a*(n + 1))*Csc[e + f*x]
+ b*C*n*Csc[e + f*x]^2, x], x], x] /; FreeQ[{a, b, d, e, f, A, B, C}, x] && LtQ[n, -1]

Rule 4179

Int[((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.))*(csc[(e_.) + (f_.)*(x_)]*(d_.))^
(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_), x_Symbol] :> Simp[A*Cot[e + f*x]*(a + b*Csc[e + f*x])^m*((d*
Csc[e + f*x])^n/(f*n)), x] - Dist[1/(d*n), Int[(a + b*Csc[e + f*x])^(m - 1)*(d*Csc[e + f*x])^(n + 1)*Simp[A*b*
m - a*B*n - (b*B*n + a*(C*n + A*(n + 1)))*Csc[e + f*x] - b*(C*n + A*(m + n + 1))*Csc[e + f*x]^2, x], x], x] /;
 FreeQ[{a, b, d, e, f, A, B, C}, x] && NeQ[a^2 - b^2, 0] && GtQ[m, 0] && LeQ[n, -1]

Rubi steps

\begin {align*} \int \frac {(a+b \sec (c+d x))^2 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {9}{2}}(c+d x)} \, dx &=\frac {2 A (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d \sec ^{\frac {7}{2}}(c+d x)}+\frac {2}{9} \int \frac {(a+b \sec (c+d x)) \left (\frac {1}{2} (4 A b+9 a B)+\frac {1}{2} (7 a A+9 b B+9 a C) \sec (c+d x)+\frac {3}{2} b (A+3 C) \sec ^2(c+d x)\right )}{\sec ^{\frac {7}{2}}(c+d x)} \, dx\\ &=\frac {2 a (4 A b+9 a B) \sin (c+d x)}{63 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 A (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d \sec ^{\frac {7}{2}}(c+d x)}-\frac {4}{63} \int \frac {-\frac {7}{4} \left (4 A b^2+18 a b B+a^2 (7 A+9 C)\right )-\frac {9}{4} \left (10 a A b+5 a^2 B+7 b^2 B+14 a b C\right ) \sec (c+d x)-\frac {21}{4} b^2 (A+3 C) \sec ^2(c+d x)}{\sec ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\frac {2 a (4 A b+9 a B) \sin (c+d x)}{63 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 A (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d \sec ^{\frac {7}{2}}(c+d x)}-\frac {4}{63} \int \frac {-\frac {7}{4} \left (4 A b^2+18 a b B+a^2 (7 A+9 C)\right )-\frac {21}{4} b^2 (A+3 C) \sec ^2(c+d x)}{\sec ^{\frac {5}{2}}(c+d x)} \, dx-\frac {1}{7} \left (-10 a A b-5 a^2 B-7 b^2 B-14 a b C\right ) \int \frac {1}{\sec ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {2 a (4 A b+9 a B) \sin (c+d x)}{63 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 \left (4 A b^2+18 a b B+a^2 (7 A+9 C)\right ) \sin (c+d x)}{45 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 \left (10 a A b+5 a^2 B+7 b^2 B+14 a b C\right ) \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}+\frac {2 A (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d \sec ^{\frac {7}{2}}(c+d x)}-\frac {1}{21} \left (-10 a A b-5 a^2 B-7 b^2 B-14 a b C\right ) \int \sqrt {\sec (c+d x)} \, dx-\frac {1}{15} \left (-18 a b B-3 b^2 (3 A+5 C)-a^2 (7 A+9 C)\right ) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx\\ &=\frac {2 a (4 A b+9 a B) \sin (c+d x)}{63 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 \left (4 A b^2+18 a b B+a^2 (7 A+9 C)\right ) \sin (c+d x)}{45 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 \left (10 a A b+5 a^2 B+7 b^2 B+14 a b C\right ) \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}+\frac {2 A (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d \sec ^{\frac {7}{2}}(c+d x)}-\frac {1}{21} \left (\left (-10 a A b-5 a^2 B-7 b^2 B-14 a b C\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx-\frac {1}{15} \left (\left (-18 a b B-3 b^2 (3 A+5 C)-a^2 (7 A+9 C)\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx\\ &=\frac {2 \left (18 a b B+3 b^2 (3 A+5 C)+a^2 (7 A+9 C)\right ) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{15 d}+\frac {2 \left (10 a A b+5 a^2 B+7 b^2 B+14 a b C\right ) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{21 d}+\frac {2 a (4 A b+9 a B) \sin (c+d x)}{63 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 \left (4 A b^2+18 a b B+a^2 (7 A+9 C)\right ) \sin (c+d x)}{45 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 \left (10 a A b+5 a^2 B+7 b^2 B+14 a b C\right ) \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}+\frac {2 A (a+b \sec (c+d x))^2 \sin (c+d x)}{9 d \sec ^{\frac {7}{2}}(c+d x)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 3.79, size = 286, normalized size = 0.99 \begin {gather*} \frac {(a+b \sec (c+d x))^2 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (168 \left (18 a b B+3 b^2 (3 A+5 C)+a^2 (7 A+9 C)\right ) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+120 \left (5 a^2 B+7 b^2 B+2 a b (5 A+7 C)\right ) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )+\left (7 \left (36 A b^2+72 a b B+a^2 (43 A+36 C)\right ) \cos (c+d x)+5 \left (156 a A b+78 a^2 B+84 b^2 B+168 a b C+18 a (2 A b+a B) \cos (2 (c+d x))+7 a^2 A \cos (3 (c+d x))\right )\right ) \sin (2 (c+d x))\right )}{630 d (b+a \cos (c+d x))^2 (A+2 C+2 B \cos (c+d x)+A \cos (2 (c+d x))) \sec ^{\frac {7}{2}}(c+d x)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((a + b*Sec[c + d*x])^2*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2))/Sec[c + d*x]^(9/2),x]

[Out]

((a + b*Sec[c + d*x])^2*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)*(168*(18*a*b*B + 3*b^2*(3*A + 5*C) + a^2*(7*A
+ 9*C))*Sqrt[Cos[c + d*x]]*EllipticE[(c + d*x)/2, 2] + 120*(5*a^2*B + 7*b^2*B + 2*a*b*(5*A + 7*C))*Sqrt[Cos[c
+ d*x]]*EllipticF[(c + d*x)/2, 2] + (7*(36*A*b^2 + 72*a*b*B + a^2*(43*A + 36*C))*Cos[c + d*x] + 5*(156*a*A*b +
 78*a^2*B + 84*b^2*B + 168*a*b*C + 18*a*(2*A*b + a*B)*Cos[2*(c + d*x)] + 7*a^2*A*Cos[3*(c + d*x)]))*Sin[2*(c +
 d*x)]))/(630*d*(b + a*Cos[c + d*x])^2*(A + 2*C + 2*B*Cos[c + d*x] + A*Cos[2*(c + d*x)])*Sec[c + d*x]^(7/2))

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(783\) vs. \(2(314)=628\).
time = 0.10, size = 784, normalized size = 2.70

method result size
default \(\text {Expression too large to display}\) \(784\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*sec(d*x+c))^2*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/sec(d*x+c)^(9/2),x,method=_RETURNVERBOSE)

[Out]

-2/315*((2*cos(1/2*d*x+1/2*c)^2-1)*sin(1/2*d*x+1/2*c)^2)^(1/2)*(-1120*A*cos(1/2*d*x+1/2*c)*sin(1/2*d*x+1/2*c)^
10*a^2+(2240*A*a^2+1440*A*a*b+720*B*a^2)*sin(1/2*d*x+1/2*c)^8*cos(1/2*d*x+1/2*c)+(-2072*A*a^2-2160*A*a*b-504*A
*b^2-1080*B*a^2-1008*B*a*b-504*C*a^2)*sin(1/2*d*x+1/2*c)^6*cos(1/2*d*x+1/2*c)+(952*A*a^2+1680*A*a*b+504*A*b^2+
840*B*a^2+1008*B*a*b+420*B*b^2+504*C*a^2+840*C*a*b)*sin(1/2*d*x+1/2*c)^4*cos(1/2*d*x+1/2*c)+(-168*A*a^2-480*A*
a*b-126*A*b^2-240*B*a^2-252*B*a*b-210*B*b^2-126*C*a^2-420*C*a*b)*sin(1/2*d*x+1/2*c)^2*cos(1/2*d*x+1/2*c)+150*a
*A*b*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))-147*A
*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))*a^2-189*A
*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))*b^2+75*a^
2*B*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))+105*b^
2*B*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))-378*B*
(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))*a*b+210*a*
b*C*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))-189*C*
(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))*a^2-315*C*
(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))*b^2)/(-2*s
in(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)/sin(1/2*d*x+1/2*c)/(2*cos(1/2*d*x+1/2*c)^2-1)^(1/2)/d

________________________________________________________________________________________

Maxima [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sec(d*x+c))^2*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/sec(d*x+c)^(9/2),x, algorithm="maxima")

[Out]

Timed out

________________________________________________________________________________________

Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 1.47, size = 329, normalized size = 1.13 \begin {gather*} -\frac {15 \, \sqrt {2} {\left (5 i \, B a^{2} + 2 i \, {\left (5 \, A + 7 \, C\right )} a b + 7 i \, B b^{2}\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + 15 \, \sqrt {2} {\left (-5 i \, B a^{2} - 2 i \, {\left (5 \, A + 7 \, C\right )} a b - 7 i \, B b^{2}\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + 21 \, \sqrt {2} {\left (-i \, {\left (7 \, A + 9 \, C\right )} a^{2} - 18 i \, B a b - 3 i \, {\left (3 \, A + 5 \, C\right )} b^{2}\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) + 21 \, \sqrt {2} {\left (i \, {\left (7 \, A + 9 \, C\right )} a^{2} + 18 i \, B a b + 3 i \, {\left (3 \, A + 5 \, C\right )} b^{2}\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) - \frac {2 \, {\left (35 \, A a^{2} \cos \left (d x + c\right )^{4} + 45 \, {\left (B a^{2} + 2 \, A a b\right )} \cos \left (d x + c\right )^{3} + 7 \, {\left ({\left (7 \, A + 9 \, C\right )} a^{2} + 18 \, B a b + 9 \, A b^{2}\right )} \cos \left (d x + c\right )^{2} + 15 \, {\left (5 \, B a^{2} + 2 \, {\left (5 \, A + 7 \, C\right )} a b + 7 \, B b^{2}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{315 \, d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sec(d*x+c))^2*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/sec(d*x+c)^(9/2),x, algorithm="fricas")

[Out]

-1/315*(15*sqrt(2)*(5*I*B*a^2 + 2*I*(5*A + 7*C)*a*b + 7*I*B*b^2)*weierstrassPInverse(-4, 0, cos(d*x + c) + I*s
in(d*x + c)) + 15*sqrt(2)*(-5*I*B*a^2 - 2*I*(5*A + 7*C)*a*b - 7*I*B*b^2)*weierstrassPInverse(-4, 0, cos(d*x +
c) - I*sin(d*x + c)) + 21*sqrt(2)*(-I*(7*A + 9*C)*a^2 - 18*I*B*a*b - 3*I*(3*A + 5*C)*b^2)*weierstrassZeta(-4,
0, weierstrassPInverse(-4, 0, cos(d*x + c) + I*sin(d*x + c))) + 21*sqrt(2)*(I*(7*A + 9*C)*a^2 + 18*I*B*a*b + 3
*I*(3*A + 5*C)*b^2)*weierstrassZeta(-4, 0, weierstrassPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c))) - 2*(35*
A*a^2*cos(d*x + c)^4 + 45*(B*a^2 + 2*A*a*b)*cos(d*x + c)^3 + 7*((7*A + 9*C)*a^2 + 18*B*a*b + 9*A*b^2)*cos(d*x
+ c)^2 + 15*(5*B*a^2 + 2*(5*A + 7*C)*a*b + 7*B*b^2)*cos(d*x + c))*sin(d*x + c)/sqrt(cos(d*x + c)))/d

________________________________________________________________________________________

Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sec(d*x+c))**2*(A+B*sec(d*x+c)+C*sec(d*x+c)**2)/sec(d*x+c)**(9/2),x)

[Out]

Exception raised: SystemError >> excessive stack use: stack is 3879 deep

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sec(d*x+c))^2*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/sec(d*x+c)^(9/2),x, algorithm="giac")

[Out]

integrate((C*sec(d*x + c)^2 + B*sec(d*x + c) + A)*(b*sec(d*x + c) + a)^2/sec(d*x + c)^(9/2), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^2\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{9/2}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((a + b/cos(c + d*x))^2*(A + B/cos(c + d*x) + C/cos(c + d*x)^2))/(1/cos(c + d*x))^(9/2),x)

[Out]

int(((a + b/cos(c + d*x))^2*(A + B/cos(c + d*x) + C/cos(c + d*x)^2))/(1/cos(c + d*x))^(9/2), x)

________________________________________________________________________________________